﻿using Dashboard.Hubs;
using Dashboard.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Dashboard.Controllers
{
	public class HomeController : Controller
	{
		public ActionResult Index()
		{
			ViewBag.SystemName = "Europe66";
			return View();
		}

		public ActionResult Contact()
		{
			ViewBag.SystemName = "Europe66";
			ViewBag.Message = "Your contact page.";

			return View();
		}

		public ActionResult Configuration()
		{
			SystemConfigurationView model = new SystemConfigurationView()
			{
				DB = @"localhost\SQLEXPRESS",
				MosaicPro = @"http://mosaictest02.foss.dk/Europe66/ManagerPro/install",
				ISIAdapterConnection = @"http://mosaictest02.foss.dk:9000/ISIAdapter",
				InfratecAdapterPort = "8091"
			};

			return View(model);
		}

		public ActionResult Users()
		{
			return View(UserMonitor.GetRegisteredUsers());
		}

		public ActionResult Events()
		{
			return View();
		}
	}
}